<?php
/**
 * Created by PhpStorm.
 * User: yeluojun
 * Date: 14-5-7
 * Time: 下午11:31
 */

require_once 'common/common.php';
function  Route(){
    global $log;
    do{
        $common = new common();
        if(!array_key_exists("PATH_INFO",$_SERVER)){
            $result = $common ->returnMsg(1,"路径错误",null);
            break;
        }
        $path = $_SERVER["PATH_INFO"];
        $req = $_REQUEST;

        $result = Route_handle($path,$req);
    }while(false);
    echo json_encode($result);
}
Route();

